package com.hantang.web.servlet;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;

import com.hantang.web.json.handlers.EditArticleHandler;

public class EditArticleServlet extends BaseServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1502668545962726436L;

	@Override
	public int doService(HttpServletRequest request, PrintWriter out) {

		String id = request.getParameter("id");
		String username = request.getParameter("username");
		String category = request.getParameter("category");
		String title = request.getParameter("title");
		String keyWords = request.getParameter("keyWords");
		String content = request.getParameter("content");
		
		String sret = EditArticleHandler.handleServlet(id, username, category, title, keyWords,
				content);
		out.print(sret);
		
		return SERVLET_SUCCESS_CODE;
	}

}
